// koa-study/src/dto/user.dto.ts
import { IsNotEmpty } from 'class-validator';

export class UserDto {
  @IsNotEmpty({ message: '账号不能为空' })
  username: string;

  @IsNotEmpty({ message: '密码不能为空' })
  readonly password: string;
}

export type userPageQuery = {
  pageNo?: number,
  pageSize?: number
  status?: number
  username?: string
}
